import request from '@/utils/request';

// 取消点赞
export const praiseDeleteById = (id) =>
    request({
        method: 'POST',
        url: '/frontend/praise/delete/',
        data: id,
    });

// 取消点赞
export const praiseDelete = (data) =>
    request({
        method: 'POST',
        url: '/frontend/praise/delete/',
        data: data,
    });

// 点赞
export const praiseAdd = (data) =>
    request({
        method: 'POST',
        url: '/frontend/praise/add/',
        data: data,
    });


// 点赞列表
export const praiseList = (data) =>
    request({
        method: 'POST',
        url: '/frontend/praise/list/',
        data: data,
    });
